﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Practicum_2
{
    public class DataPoint
    {
        public int noOfAttributes;
        public double[] attributes;
        public int classLabel;

        public DataPoint(int n, double[] a, int cl)
        {
            this.noOfAttributes = n;
            this.classLabel = cl;
            this.attributes = a;
        }

        public override string ToString()
        {
            String s = "cl: " + classLabel;
            for (int i = 0; i < attributes.Length; i++)
            {
                s += "\n" + i + ": " + attributes[i];
            }
                return s;
        }
    }
}
